#define _CRT_SECURE_NO_WARNINGS 1



#include<stdio.h>
#include<stdlib.h>


typedef struct Node
{
	int data;
	struct Node* next;
} SLNode;
void InitList(SLNode** L)
{
	L = NULL;
}
int ListInsert(SLNode* L, int i, int x)
{
	if (i == 1)
	{
		SLNode* s = (SLNode*)malloc(sizeof(SLNode));
		s->data = x;
		s->data = L;
		L = s;
		return 1;
	}
	int j = 1;
	SLNode* p = L;
	while (p != NULL && j < i - 1)
	{
		p = p->next;
		j++;
	}
	if (p == NULL)
		return 0;
	SLNode* s = (SLNode*)malloc(sizeof(SLNode));
	s->data = e;
	s->next = p->next;
	p->next = s;
	return 1;
}
int ListDelete()
{

}
int main()
{
	SLNode* L;
	InitList(&L);
	int i = 0, x = 0;
	for (i = 0; i < 10; i++)
		ListInsert(L, i, i + 1);

	
	return 0;
}